home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / C / LIB / UNIXLIB37B / !UnixLib37 / src / unix / c / getdtables < prev    next >
Text File  |  1996-11-09  |  1KB  |  37 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /unixb/home/unixlib/source/unixlib37/src/unix/c/RCS/getdtables,v $
  4.  * $Date: 1996/10/30 21:57:16 $
  5.  * $Revision: 1.1 $
  6.  * $State: Rel $
  7.  * $Author: unixlib $
  8.  *
  9.  * $Log: getdtables,v $
  10.  * Revision 1.1  1996/10/30 21:57:16  unixlib
  11.  * Initial revision
  12.  *
  13.  ***************************************************************************/
  14.  
  15. static const char rcs_id[] = "$Id: getdtables,v 1.1 1996/10/30 21:57:16 unixlib Rel $";
  16.  
  17. /* unix.c.getdtables. Implementation of getdtablesize ().
  18.  
  19.    Written by Nick Burrett, 13 October 1996.  */
  20.  
  21. #include <limits.h>
  22. #include <unistd.h>
  23.  
  24. /* Return the maximum number of file descriptors
  25.    the current process could possibly have.  */
  26.  
  27. /* A stub function that really should take into account the
  28.    actual number of files open on RISC OS and determine whether
  29.    that OPEN_MAX files can still be opened. Also should take
  30.    into account getrusage ().  */
  31.  
  32. int
  33. getdtablesize (void)
  34. {
  35.   return OPEN_MAX;
  36. }
  37.